{{include file="admin/common/header.html"}}
{{include file="admin/common/nav.html"}}
	<div id="page-wrapper">
            <!-- /.row -->
            <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                         用户列表 
						 
                        </div>
				<div class="col-md-12 col-md-offset-11 @grid-gutter-width:         30px;"><a type="button" class="btn btn-outline btn-info " href="create_user">新增用户</a></div>				
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>用户名</th>
                                        <th>邮箱</th>
                                        <th>手机号</th>
                                        <th>会员组</th>
										<th>状态</th>
										<th>操作</th>
                                    </tr>
                                </thead>
								
                                <tbody>  
										{{foreach from=$users item=i key=k}}
                                    <tr class="gradeU">
                                        <td>{{$i->username}}</td>
                                        <td>{{$i->email}}</td>
                                        <td>{{$i->phone}}</td>
										
                                        <td >{{foreach from=$i->groups item=item key=key}}
										<a href="/auth/edit_group/{{$i->id}}">{{$item->name}}</a>
										<span> 
										{{/foreach}}
										</td>
										
                                        <td class="center">
										{{if $i->active == 1}}
													活跃用户
												{{else}}
													
												{{/if}}
										</td>
										<td class="center"><a href="/auth/edit_user/{{$i->id}}">编辑</a></td>
                                    </tr>
									{{/foreach}}
                                </tbody>
                            </table>
                            <!-- /.table-responsive -->
                        
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
            
        
        </div>
        <!-- /#page-wrapper -->
				
{{include file="admin/common/footer.html"}}			
	<script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true
        });
    });
    </script>
